import request from '@/utils/httpRequest'
// 获取所有道具
export function getAllProp(query) {
  return request({
    url: '/sys/facilitytype/list',
    method: 'get',
    params: query
  })
}

// 添加道具
export function CreateProp(query) {
  return request({
    url: '/sys/facilitytype/save',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 删除道具
export function DelProp(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/facilitytype/delete',
    method: 'post',
    data: request.adornData(query, false)
  })
}

// 获取道具详情
export function getDetailProp(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/facilitytype/info/' + query,
    method: 'get'
  })
}

// 修改玩具
export function editProp(query) {
  // var new_data = qs.stringify(query);
  return request({
    url: '/sys/facilitytype/update',
    method: 'post',
    data: request.adornData(query, false)
  })
}

